import Layout from '@/layout'
export default {
  path: '/employees',
  component: Layout,
  children: [
    {
      path: '', // 要么就空着, 要么就写全
      name: 'employees',
      component: () => import('@/views/employees'),
      meta: { title: '员工', icon: 'people' }
    },
    {
      // path 加/ 必须要写完整路径,不写/ 只写  detail  会拼接上面  path: '/employees',  /employees/detail'
      // 'detail/:id' 动态参数匹配
      path: 'detail/:id',
      name: 'detail',
      component: () => import('@/views/employees/detail'),
      // meta: { title: '员工', icon: 'people' },
      hidden: true
    },
    // 员工打印页
    {
      path: 'print/:id',
      component: () => import('@/views/employees/print'),
      hidden: true,
      meta: {
        title: '员工打印'
      }
    }
  ]
}
